package ee.cafe;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: alvar
 * Date: Sep 23, 2009
 * Time: 2:35:07 PM
 * To change this template use File | Settings | File Templates.
 */
public class ChatMessage implements Serializable {
  protected String author;
  protected String text;
  protected Long timestamp;

  protected ChatMessage() {

  }

  public ChatMessage(String author, String text) {
    this.author = author;
    this.text = text;
    this.timestamp = System.currentTimeMillis();
  }

  public ChatMessage(String author, String text, Long timestamp) {
    this.author = author;
    this.text = text;
    this.timestamp = timestamp;
  }

  public String getAuthor() {
    return author;
  }

  public String getText() {
    return text;
  }

  public Long getTimestamp() {
    return timestamp;
  }
}
